//
//  UIButton+CXCXAddition.m
//  02-新特性界面
//
//  Created by 小宇 on 17/5/19.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "UIButton+CXAddition.h"
#import "UIColor+CXAddition.h"
@implementation UIButton (CXAddition)
+ (instancetype)cx_textButton:(NSString *)title fontSize:(CGFloat)fontSize normalColor:(int32_t) normalColor backGroundColor:(int32_t)backColorDegrees BtnCornerRadius:(int32_t) rediusDegrees{

	UIButton *button = [[self alloc] init];

	button.layer.cornerRadius = rediusDegrees;

	[button setTitle:title forState:UIControlStateNormal];

	[button setTitleColor:[UIColor hm_colorWithHex:normalColor] forState:UIControlStateNormal];

	button.titleLabel.font = [UIFont systemFontOfSize:fontSize];

	[button setBackgroundColor:[UIColor hm_colorWithHex:backColorDegrees]];

	[button sizeToFit];

	return button;
}
@end
